<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<jsp:include page="../common/header.jsp" />
<div class="container-fluid-full">
	<div class="row-fluid">
		<jsp:include page="../common/menu.jsp" />
		<!-- start: Content -->
		<div id="content" class="span10">
			<ul class="breadcrumb">
				<li><i class="icon-home"></i> <a href="main">主页</a> <i
					class="icon-angle-right"></i></li>
				<li><a href="roleList">角色管理</a></li>
			</ul>
			<div class="row-fluid sortable">
				<div class="box span12">
					<div class="box-header">
						<h2>
							<i class="halflings-icon tasks"></i><span class="break"></span>角色管理
							<span class="break"></span><a class="btn-setting btn-success btn"
								href="#"> <i class=" halflings-icon plus white"></i>添加
							</a>
						</h2>
					</div>
					<div class="box-content">
						<table
							class="table table-striped table-bordered bootstrap-datatable datatable">
							<thead>
								<tr>
									<th>角色ID</th>
									<th>角色名</th>
									<th>备注</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
								<c:forEach items="${roleList}" var="role">
									<tr>
										<td>${role.r_id}</td>
										<td class="center">${role.r_name}</td>
										<td class="center">${role.r_remark}</td>
										<td class="center"><a class="btn btn-info"
											href="roleUpdateInput?r_id=${role.r_id}"> <i
												class="halflings-icon white edit"></i>编辑
										</a> <a class="btn btn-danger" href="roleDelete?r_id=${role.r_id}">
												<i class="halflings-icon white trash"></i>删除
										</a></td>
									</tr>
								</c:forEach>
							</tbody>
						</table>
					</div>
				</div>
				<!--/span-->
			</div>
		</div>
		<!-- end: Content -->
	</div>
</div>
<div class="modal hide fade" id="myModal">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal">×</button>
		<h3>添加角色</h3>
	</div>
	<form class="form-horizontal" action="roleAdd" method="post">
		<div class="modal-body">
			<fieldset>
				<div class="control-group success">
					<label class="control-label" for="typeahead">角色名</label>
					<div class="controls">
						<input type="text" name="r_name"/>
						 <span class="help-inline">*不能为空</span>
					</div>
				</div>
				<div class="control-group success">
					<label class="control-label" for="textarea2">角色说明</label>
					<div class="controls">
						<textarea name="r_remark"></textarea>
					</div>
				</div>
			</fieldset>
		</div>
		<div class="modal-footer">
			<button type="submit" class="btn btn-primary">保存</button>
			<a href="#" class="btn" data-dismiss="modal">取消</a>
		</div>
	</form>
</div>
<div class="clearfix"></div>
<jsp:include page="../common/footer.jsp" />
